package com.gxks.lhs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxks.lhs.entity.Goods;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author LuoHaisong
 * @since 2023-05-18
 */
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("SELECT * FROM goods WHERE is_deleted=0 and status=1 ORDER BY RAND() LIMIT 10")
    List<Goods> randomFindGoodsList();

}
